﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StaticClass
{
    static class A
    {
        static A()
        {
            Console.WriteLine("A的构造函数");
        }

        private static string str;
        private static int age;

        public static string Str
        {
            get
            {
                return str;
            }
            set
            {
                str = value;
            }
        }


        public static int GetAge()
        {
            return age;
        }

        public static string GetStr()
        {
            return str;
        }
    }
}
